import request from '@/utils/request'
import type { BaseResponse } from '@/types/api'

// 获取当天各限流Key的违例次数（需要管理员权限）
export const getTodayRateLimitViolations = async (): Promise<BaseResponse<Record<string, number>>> => {
  const res = await request.get('/monitor/rate-limit/violations/today')
  return res.data
}